package cbfg.rvadapter.selection.store

class SetStore<T : Any>(private val selections: MutableSet<T>) : IStore<T> {
    override val items: Collection<T> = selections

    override fun add(element: T, index: Int): Boolean = selections.add(element)

    override fun remove(element: T): Boolean = selections.remove(element)

    override fun clear() {
        selections.clear()
    }
}